--[[
WoW/Lua Syntax Postprocessor

author: Tabithy
email: tabithy@gmail.com
website: http://www.googlecode.com/p/tabstools

Run this from the command line after doing /harvest from within WoW.

This requires that you have Lua v5.1 installed on your system.
typical usage:
~% lua51 harvest_postprocess.lua ACCOUNTNAME > syntax.txt
~% mate syntax.txt

...then copy and past the generated WoW/Lua syntax into the WoW AddOn bundle
via the Bundle editor. 
]]

if (not arg[1]) then
    print("usage: " .. arg[0] .. " ACCOUNTNAME")
    os.exit()
end

dofile([[/Applications/World of Warcraft/WTF/Account/]] .. arg[1] .. [[/SavedVariables/Harvest.lua]])

print(SYNTAX)
